package org.l.qiao.search;

import org.l.qiao.Cluster;

public class Field extends Cluster {

    public static final int SHOW = 1;
    public static final int HIDE = 0;

    public Field() {
        super();
    }

    public Field(String... fields) {
        super();
        include(fields);
    }

    public void include(String... fields) {
        for (String field : fields) {
            this.put(field, SHOW);
        }
    }

    public void exclude(String... fields) {
        for (String field : fields) {
            this.put(field, HIDE);
        }
    }
}
